package com.memory.modules.business.service.earn;

import com.memory.modules.business.domain.earn.AccountEarn;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Optional;

public interface AccountEarnService {
    AccountEarn create(AccountEarn accountEarn);

    AccountEarn modify(Long id, AccountEarn accountEarn);

    AccountEarn remove(Long id);

    Optional<AccountEarn> findById(Long id);

    Page<AccountEarn> findPage(Example<AccountEarn> example);

    void saveAccountEarn(Long accountId, Integer count, BigDecimal price, Date createDate);

    Optional<AccountEarn> findByAccountId(Long id);

//    Optional<AccountEarn> findEarnByAccountId(Long accountId);
}
